package org.dromara.xxmj.domain.dto;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.dromara.system.domain.SysClient;
import org.dromara.system.domain.SysUser;
import org.hibernate.validator.constraints.Length;

/**
 * 课程查询数据传输对象
 *
 * @author Vincent
 */
@Data
@AutoMapper(target = SysUser.class)
public class ForgetPasswordDTO {

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @Length(min = 11, max = 11, message = "手机号码长度不正确")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phoneNumber;

    @NotBlank(message = "密码不能为空")
    @Length(min = 5, max = 20, message = "{user.password.length.valid}")
    private String password;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码为空")
    private String code;

}
